package active.memento.boss;

public class ClientBossMemento {
    public static void main(String[] args) {
        BossCareTaker bossCareTaker = new BossCareTaker();

        Boss boss = new Boss();
        boss.setVic(100);
        boss.setSve(100);
        System.out.println("boss当前状态: vic=" + boss.getVic() + ", sve=" + boss.getSve());
        bossCareTaker.setBossMemento(boss.saveVicAndSveToBossMemento());

        boss.setVic(30);
        boss.setSve(30);
        System.out.println("boss当前状态: vic=" + boss.getVic() + ", sve=" + boss.getSve());


        boss.returnState(bossCareTaker.getBossMemento());
        System.out.println("boss当前状态: vic=" + boss.getVic() + ", sve=" + boss.getSve());
    }
}
